
<div class='fui-page  fui-page-current order-comment-page'>
    <div class="fui-header">
	<div class="fui-header-left">
	    <a class="back" onclick='history.back()'></a>
	</div>
	<div ng-show="pagedata.post.pingjia==2" class="title">追加评价</div> 
	<div ng-show="pagedata.post.pingjia!=2" class="title">{{pagedata.post.pingjia==1?'修改评价':'评价'}}</div> 
	<div class="fui-header-right">&nbsp;</div>
    </div>
  <div class='fui-content navbar'>   
		<div class="fui-list-group goods-list-group" ng-if="pagedata.op=='comment'"> 
			<div class="fui-list-group-title"><i class="icon icon-dianpu"></i> {{pagedata.shop_setting.name || '平台自营'}}</div>	
			<div class="fui-list goods-list" data-goodsid="{{pagedata.goods.goodsid}}">
				<a class="fui-list-media" href="javascript:" ng-click="access_json('jy_weishop/goods.detail/getgoods/id='+pagedata.goods.id)">
					<img ng-src="{{tomedia(pagedata.goods.image) || '../core/resource/images/nopic.jpg'}}" class="round">
				</a>
				<a class="fui-list-inner" href="javascript:" ng-click="access_json('jy_weishop/goods.detail/getgoods/id='+pagedata.goods.id)">
					<div class="text goodstitle towline">{{pagedata.goods.title}}</div>
					<div ng-show="pagedata.goods.optionid" class='subtitle'>{{pagedata.goods.optiontitle}}</div>
				</a>
				<div class='fui-list-angle'>
					<p>￥<span class='marketprice'>{{pagedata.goods.price}}<br/>x{{pagedata.goods.total}}</span></p>	
						<div ng-show="pagedata.goods_count > 1" class='fui-label btn btn-danger-o goods-comment-btn'>评价 <i class='icon icon-unfold'></i></div>				
				</div>
			</div>
		</div>
		<div class="fui-list-group goods-list-group" ng-if="pagedata.op=='commentorder'"> 
			<div class="fui-list-group-title"><i class="icon icon-dianpu"></i> {{pagedata.shop_setting.name || '平台自营'}}</div>	
			<div class="fui-list goods-list" ng-repeat="item in pagedata.goods">
				<a class="fui-list-media" href="javascript:" ng-click="access_json('jy_weishop/goods.detail/getgoods/id='+item.id)">
					<img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}" class="round">
				</a>
				<a class="fui-list-inner" href="javascript:" ng-click="access_json('jy_weishop/goods.detail/getgoods/id='+item.id)">
					<div class="text goodstitle towline">{{item.title}}</div>
					<div ng-show="item.optionid" class='subtitle'>{{item.optiontitle}}</div>
				</a>
				<div class='fui-list-angle'>
					<p>￥<span class='marketprice price'>{{item.price}}<br/>x{{item.total || 1}}</span></p>	
						<div ng-show="pagedata.goods_count > 1" class='fui-label btn btn-danger-o goods-comment-btn'>评价 <i class='icon icon-unfold'></i></div>				
				</div>
			</div>
		</div>
	 <div class="fui-cell-group">
		 <div class="fui-cell"> <div class='fui-cell-label bold'>评价一下吧</div></div>
		 <div ng-show="pagedata.order.iscomment==0" class='fui-cell must'>
			  <div class='fui-cell-label'>评分</div>
			 <div class='fui-cell-info'>
				 <div class="fui-stars warning">
					 <span class="stars">
								<i ng-class="{'icon':1, 'icon-shoucang-tianchong selected':pagedata.post.star>0,'icon-shoucang':pagedata.post.star<1}" ng-click="pagedata.post.star=1"></i>
								<i ng-class="{'icon':1, 'icon-shoucang-tianchong selected':pagedata.post.star>1,'icon-shoucang':pagedata.post.star<2}" ng-click="pagedata.post.star=2"></i>
								<i ng-class="{'icon':1, 'icon-shoucang-tianchong selected':pagedata.post.star>2,'icon-shoucang':pagedata.post.star<3}" ng-click="pagedata.post.star=3"></i>
								<i ng-class="{'icon':1, 'icon-shoucang-tianchong selected':pagedata.post.star>3,'icon-shoucang':pagedata.post.star<4}" ng-click="pagedata.post.star=4"></i>
								<i ng-class="{'icon':1, 'icon-shoucang-tianchong selected':pagedata.post.star>4,'icon-shoucang':pagedata.post.star<5}" ng-click="pagedata.post.star=5"></i>
					</span>
				 </div>
			 </div>
		 </div>

			<div class="fui-cell">
					<div class="fui-cell-label">晒图</div>
			 </div>
				<div class="weui_cells weui_cells_form" style="margin-top:0">
						<div class="weui_cell">
							<div class="weui_cell_bd weui_cell_primary">
								<div class="weui_uploader">
									<div class="weui_uploader_bd">
										<ul class="weui_uploader_files">
											<li ng-repeat="p in pagedata.post.images track by $index" class="weui_uploader_file" style="background-image:url({{tomedia(p)}})">
												<div class="upbtn" >
													<a style="color:#f60" href="javascript:;" ng-click="pagedata.post.images.splice($index-1,0,p);pagedata.post.images.splice($index+1,1)">上移</a>
													<a style="color:#f60" href="javascript:;" ng-click="pagedata.post.images.splice($index,1)">删除</a>
												</div>
											</li>
										</ul>
										<div class="weui_uploader_input_wrp" href="javascript:;" ng-click="images(pagedata.post,'images')">
										</div>
									</div>
								</div>
							</div>
						</div>
				</div>
			<div class="fui-cell">
					<div class="fui-cell-label">评论</div>
			 </div>
			 <div class="fui-cell">
					<div class="fui-cell-info">
						<textarea rows="5" placeholder="说点什么吧" ng-model="pagedata.post.content" style="font-size:0.6rem;padding-left:0.3rem"></textarea>
					</div>
			 </div>
	 </div>
  </div>      
	<div class='fui-navbar'>
	  <a class='btn btn-danger btn-submit nav-item' href="javascript:"  ng-click="post(pagedata.post,'submit')">提交评价</a>
	  </div>
</div> 